package com.agent.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Transient;
import java.util.Date;


@Getter
@Setter
@ToString
public class User {

    private int id;
    private String userName;
    private String password;
    private String deptId;
    private Integer roleId;
    private Boolean enabled;
    private String description;
    private String telphone;
    private int age;
    private String sex;
    private String addressId;
    private String rankId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;
    private String creator;
    private String roleName;
    private String deptName;
    private String displayName;
    private String email;
    private String skillDesc;// 技能组 默认kefu=1;
    private String extension;// 分机号 默认kefu=1;
    @Transient
    private String notNullrankId;// 职称不为空


}
